import request from '../utils/request'
// 获取所有分类
export function getlist () {
  return request({
    url: '/v1_0/channels',
    method: 'get'
  })
}

// 获取分类
export function articles (id) {
  return request({
    url: `/v1_0/articles?channel_id=${id}&timestamp=${Date.now()}`,
    method: 'get'
  })
}
